package be.bonamis.umpire.domain;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name = "UMPIRE")
@PrimaryKeyJoinColumn(name="PERSON_ID")
public class Umpire extends Person{	
	    
    private Ranking ranking;

	@ManyToOne
	public Ranking getRanking() {
		return ranking;
	}

	public void setRanking(Ranking ranking) {
		this.ranking = ranking;
	}

}
